package com.gd.coreservice.service;

import com.gd.coreservice.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gd.coreservice.entity.vo.AdminVo;

import javax.swing.text.html.parser.Element;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2024-03-23
 */

public interface AdminService extends IService<Admin> {


    AdminVo login(String username, String password);

    String findId(String username);

    boolean register(String username, String password);

    List<Admin> findAll();

    Admin findOne(String iid);

    boolean updatePassword(String iid, String password, String newpassword);

    boolean insertAdmin(Admin admin);

    boolean updateAdmin(Admin admin);

    Integer deleteAdmin(String aid);

    Integer deleteAdminBatch(List<String> aids);



    Map<String, Object> getAdminPageData(Long pageNum, Long pageSize, String Ausername);

    int getAllTotal();
}
